﻿#pragma once
#include "constants.h"
#include "protocol.h"
#include <string>

class config {
public:
  /*下载保存位置*/
  std::string downloadDir;

  /*包数据长度*/
  int bodyLength = ALLOW_LENGTH;

  /*特性ID*/
  char futureID = 0x00;

  /*厂商ID*/
  unsigned short vendorId = 0x2207;

  /*产品ID*/
  unsigned short productId = 0x0019;

public:
  config *addDownloadDir(std::string downloadDir);

  config *addBodyLength(int bodyLength);

  config *addFutureID(char futureID);

  config *addVendorID(unsigned short vendorId);

  config *addProductId(unsigned short productId);
};
